<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ page import="com.zhangmengyuan.medical.entity.Goods" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<!-- Template Name: Clip-One - Responsive Admin Template build with Twitter Bootstrap 3.x Version: 1.3 Author: ClipTheme -->
<!--[if IE 8]><html class="ie8 no-js" lang="en"><![endif]-->
<!--[if IE 9]><html class="ie9 no-js" lang="en"><![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- start: HEAD -->
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8"/>
    <title>登录-医疗器械商城</title>

    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css"
          href="http://cdn.datatables.net/1.10.15/css/jquery.dataTables.css">
</head>

<body>
<div id="header">
    <%
        Map<Integer, Goods> map = (Map<Integer, Goods>) session.getAttribute("goodsCart");
    %>
</div>
<div class="top">
    <c:choose>
        <c:when test="${user.userName!=null}">
            <span>${sessionScope.user.userName}欢迎您</span>
        </c:when>
        <c:when test="${user.userName!=null}">[<a href="register.jsp">登录</a>][<a href="login.jsp">注册</a>]</c:when>

    </c:choose>
</div>
<div class="cart">
    您的<a href="cart.jsp">购物车</a>&nbsp;&nbsp;目前有<strong><%=map != null ? map.size() : 0 %>
</strong>件商品
</div>
<div id="nav">
    <ul>
        <li><a href="index.jsp">首页</a></li>
        <li><a href="index.jsp">家用器械</a></li>
        <li><a href="index.jsp">医用器械</a></li>
        <li><a href="index.jsp">保健养生</a></li>
        <li><a href="index.jsp">健康中心</a></li>
        <li><a href="index.jsp">服务中心</a></li>

    </ul>
</div>
<div class="glyphicon-search">
    <form action="#"><input class="glyphicon-search" type="text" style="height:18px;line-height:18px;width:180px;"
                            onkeydown="javascript:if(event.keyCode==13)_fnDataToSearch(0);" placeholder="请输入商品名称或品牌..."
                            autocomplete="off">
        <input name="btnsearch" class="search-btn" id="newbtnsearch" type="image"
               src="http://s.yiliu88.com/images2017/search_btn.jpg" value="搜 索">
    </form>
    <table>
        <tr>
            <td width="230" height="20" align="right">欢迎访问医疗器械商城,现在是:</td>
            <td width="400" align="left" id="DateTime">
                <script>
                    setInterval("DateTime.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
                </script>
            </td>
        </tr>
    </table>
</div>
<form action="login" method="post">
    <div class="login_wrap none">
        <div class="item">
            <label class="name_label"></label>
            <input name="" class="loginname" type="text" maxlength="18" name="username"
                   placeholder="请输入用户名或用户ID">
            </span>


        </div>

        <div class="item">
            <label class="paw_label"></label>
            <input name="" class="loginname" name="password" type="password" maxlength="18"
                   placeholder="请输入用户密码">
            </span>
        </div>
        <div class="clearfix pw_safe">
            <span class="left">还没有账号？<a href="/register.jsp">快速注册</a></span>
            <input class="login_btn" id="btnlogin" type="submit" value="登陆"/>
        </div>

    </div>

</form>

<form action="login" method="post">
    <input name="username"/>
    <input name="password" type="password"/>
    <input type="submit" value="登陆"/>

</form>
<div class="w990" style="margin-top: 30px">
    <div class="footer-link">
        <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#jyfw">互联网药品交易服务资格证</a>
        <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#xxfw">互联网药品信息服务资格证</a>
        <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#jyxk">医疗器械经营许可证</a>
        <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#zzdx">增值电信业务经营许可证</a>
        <hr style="color: #cccccc" size="1px"/>
    </div>
    <div class="call">
        客户服务热线：400-111-0000
    </div>
    <div class="copyright"></div>
    <span>
        Copyright&copy;&nbsp;2018&nbsp;&nbsp;医疗器械<a href='index.jsp'>www.ylqx.com</a>商城保留一切权利。
        &nbsp;All Rights Reserved.&nbsp;&nbsp;<br/>
        &nbsp;&nbsp;
        地址：河南省平顶山市平顶山学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </span>
</div>

</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>


</html>